/***************** Disable right mouse click ****************/
function clickIE4(){
    if (event.button==2){
        return false;
    }
}

function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
        if (e.which==2||e.which==3){
            return false;
        }
    }
}

if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")


/************************ Show/Hide Right menu **************************/
$(document).ready(function(){
  $(".browser").mousedown(function(e){

        document.getElementById("rightMenu").style.left=e.clientX+"px";
         document.getElementById("rightMenu").style.top=e.clientY+"px";
        if(e.which==3)
            $(".rightMenu").show();
        if(e.which==1)
             $(".rightMenu").hide();
  });
});